<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>注册页面</title>
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/register.css">
    <script src="js/register.js"></script>
</head>
<body>
    <section>
        <aside class="img_box"></aside>
        <h1 style="text-align:center;margin-top:30px;">用户注册</h1>
        <fieldset>
            <legend hidden>用户注册</legend>
            <form action="" method="POST">
                <table>
                    <tbody>
                        <tr>
                            <td><label for="userName">用户名：</label></td>
                            <td>
                                <input type="text" name="userName" required
                                 id="userName" pattern="/^[a-zA-Z0-9]+$/" title="请使用英文和数字">
                            </td>
                            <td>
                                <nav class="error_block">
                                    <div class="userName_error_img"></div>
                                    <div class="userName_error_msg">
                                    </div>
                                </nav>
                            </td>
                        </tr>
                        <tr>
                            <td><label for="nickName">昵称：</label></td>
                            <td><input type="text" name="nickName" id="nickName"></td>
                            <td>
                                <nav class="error_block">
                                    <div class="nickName_error_img"></div>
                                    <div class="nickName_error_msg">
                                    </div>
                                </nav>
                            </td>
                        </tr>
                        <tr>
                            <td><label for="userName">密码：</label></td>
                            <td><input type="password" name="password" id="password"></td>
                            <td>
                                <nav class="error_block">
                                    <div class="password_error_img"></div>
                                    <div class="password_error_msg"></div>
                                </nav>
                            </td>
                        </tr>
                        <tr>
                            <td><label for="rePassword">再输入一次：</label></td>
                            <td><input type="password" name="rePassword" id="rePassword"></td>
                            <td>
                                <nav class="error_block">
                                    <div class="rePassword_error_img"></div>
                                    <div class="rePassword_error_msg"></div>
                                </nav>
                            </td>
                        </tr>
                        <tr>
                            <td><label for="userName">email：</label></td>
                            <td><input type="email" name="email" id="email"></td>
                            <td>
                                <nav class="error_block">
                                    <div class="email_error_img"></div>
                                    <div class="email_error_msg"></div>
                                </nav>
                            </td>
                        </tr>
                        <tr>
                            <td><label for="phone">手机号：</label></td>
                            <td>
                                <input type="text" name="phone" id="phone">
                            </td>
                            <td>
                                <nav class="error_block">
                                    <div class="phone_error_img"></div>
                                    <div class="phone_error_msg"></div>
                                </nav>
                            </td>
                        </tr>
                        <tr>
                            <td>性别：</td>
                            <td colspan="2">
                                <input type="radio" name="sex" value="1" id="man">
                                <label for="man">男</label>&nbsp;
                                <input type="radio" name="sex" value="2" id="woman">
                                <label for="woman">女</label>
                            </td>
                        </tr>
                        <tr>
                            <td>爱好：</td>
                            <td colspan="2">
                                <input type="checkbox" name="hobbies" value="1" id="book">
                                <label for="book">读书</label>&nbsp;
                                <input type="checkbox" name="hobbies" value="2" id="music">
                                <label for="music">听音乐</label>&nbsp;
                                <input type="checkbox" name="hobbies" value="3">运动&nbsp;
                                <input type="checkbox" name="hobbies" value="4">写代码&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>籍贯：</td>
                            <td colspan="2">
                                <select id="province"></select>&nbsp;
                                <select id="city"></select>
                            </td>
                        </tr>
                        <tr>
                            <td>照片：</td>
                            <td colspan="2">
                                <input type="file" name="photo" accept="image/*">
                            </td>
                        </tr>
                        <tr>
                            <td>生日：</td>
                            <td colspan="2">
                                <input type="date" name="birthday">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <nav style="text-align: center;margin-top:50px;">
                                    <button type="reset">重置</button>&nbsp;&nbsp;
                                    <button type="submit">注册</button>
                                </nav>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </form>
        </fieldset>
    </section>
</body>

</html>